
<div class="pad-10" >

	<div class="navigate">
		<h1>客户列表</h1>

            <span class="ui-button ui-button-morange fr">
                    <a class="ui-button-text fr" href="/index.php/Admin/Users/add">添加</a>
            </span>
  	</div>
  	

    <div class="explain-col">
 		&nbsp;查询条件:
    	<select id="search">
    	<volist name="user_search" id="s">
    		<option value="{$s.item}" <if condition="$search eq $s['item']">selected="selected"</if>>{$s.name}</option>
    	</volist>
    	</select>
    	
        &nbsp;查询内容 :
        <input name="keywords" id="keywords" type="text" class="input-text" size="25" value="{$keywords}" />
        <input type="submit" name="btnSearch" id="btnSearch" class="button" value="搜索" />
	</div>

    <div class="table-list">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width="80">客户号</th>                
                <th width=100>店名</th>
                <th width=80>平台</th>
                <th width=80>类目</th>
                <th width=100>添加日期</th>
                <th width=80>客户运维</th>
                <th width=80>联系人</th>
                <th width=100>电话</th>
                <th width=80>邮箱</th>
                <th width=60>QQ</th>
                <th width=60>状态</th>
                <th width=60>操作</th>
            </tr>
        </thead>
    	<tbody>
        <volist name="users" id="u">
        <tr>
        	<td align="center">{$u.user_id}</td>
        	<td align="center">
        		<a href="{$u.shop_url}" target="_blank">{$u.shop_name}</a>
        	</td>
        	<td align="center">{$u.plantform_name}</td>
            <td align="left">{$u.category}</td>
            <td align="center">{$u.created_fmt}</td>
            <td align="center">{$u.business_admin_name}</td>
            <td align="center">{$u.real_name}</td>
            <td align="center">{$u.mobile_phone}</td>
            <td align="center">{$u.user_email}</td>
            <td align="center">{$u.qq}</td>            
            <td align="center">            
            	<if condition="$u.disabled eq 1">
					<span class="color-red">禁用</span>
				<else />
					<span class="color-green">启用</span>
				</if>
            </td>
            <td align="center">
            	<a href="/index.php/Admin/Users/detail?id={$u.user_id}" target="_self">编辑</a>            </td>
        </tr>
        </volist>
    	</tbody>
    </table>

    <div class="btn">
		<include file="Common:pager" />
    </div>
    
    </div>
    
</div>

<script type="text/javascript" src="/Js/adm/users/index.js"></script>